package com.ftg.learn.day10.factory;

/**
 * @author kangjx
 * @version 1.0
 * @date 2023/8/10 上午11:03
 */
public class Test {

    public static void main(String[] args) {
        Ice i1 = IceFactory.getIceInstance();
        System.out.println(i1);


        Ice i2 = IceFactory.getIceInstance();
        System.out.println(i2);

        Ice i3 = IceFactory.getIceInstance("八个圈");
        System.out.println(i3);

        Ice i4 = IceFactory.getIceInstance(2);
        System.out.println(i4);
    }

}
